Ext.define('js.ledger.LedgerButtonPanel', {
    extend: 'Ext.Container',
    id:'LedgerButtonPanel',
    config: {
        autoScroll: true,
        border: false,
        layout: {
            type: 'vbox',
            align: 'stretch'
        }
    },
    initComponent: function () {
        let ledgerButtonGroup={
            xtype: 'panel',
            ui: 'threshold1',
            bodyStyle:{
                background:'#eee'
            },
            width:'100%',
            height: 100,
            border: false,
            layout: 'hbox',
            id:'ledgerButtonGroup',
            items:[{
                            xtype: 'combobox',
                            height: 36,
                            width:'25%',
                            emptyText: '项目筛选',
                            margin:'0 58% 0 29%',
                            triggerAction: 'all',
                            editable: false,
                            displayField: 'dataType',
                            valueField: 'value',
                            store:  Ext.create('js.store.wide.projectQueryOneStore'),
                            /* store: this.store,
                             listeners: {
                                 change: function (com, newValue, oldValue, eOpts) {//企业ID
                                     comboStore.load({params: {'conditionValue': newValue, 'args': 1,},
                                         callback : function(record, options, success) {
                                             if(Ext.getCmp('thresholdDeviceC') !== null)
                                                 Ext.getCmp('thresholdDeviceC').setValue(record[0].data.value);
                                         }}
                                     );
                                 }
                             }*/
                        },{
                            xtype: 'combobox',
                            emptyText: '建筑用途',
                            triggerAction: 'all',
                            height: 36,
                            width: '25%',
                            margin:'0 58% 0 29%',
                            labelSeparator: '',
                            labelWidth: 70,
                            editable: false,
                            displayField: 'dataType',
                            valueField: 'value',
                            store:  Ext.create('js.store.wide.projectConstructionApplications'),
                            /*store: comboStore,
                            listeners: {
                                change: function (com, newValue, oldValue, eOpts) {//企业ID
                                    cComboStore.load({params: {'conditionValue': newValue, 'args': 2},
                                        callback : function(record, options, success) {
                                            if(Ext.getCmp('thresholdCompC') !== null)
                                                Ext.getCmp('thresholdCompC').setValue(record[0].data.value);
                                        }});
                                }
                            }*/
                        },
                        {
                   xtype:'button',
                    text:`<span style="color: #fff;" >导出为Excel</span>`,
                }
            ]};
        this.items = [ledgerButtonGroup];
        this.callParent(arguments);
    }
});